package lesson01;

/**
 * 数据模型： 
 * @author Administrator
 *
 */
public class Film {
	// 非静态全局变量===属性
	private String fname;
	private double price;
	private String[] actors;
	// 属性私有化，通过getter/setter方法控制访问权限  “面向对象语言三大特点-封装”
	public String getFname() {
		return fname;
	}
	public void setFname(String fname) {
		this.fname = fname;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String[] getActors() {
		return actors;
	}
	public void setActors(String[] actors) {
		this.actors = actors;
	}
	// 自定义有参数构造器时，默认无参数构造器失效。
	public Film(String fname, double price, String[] actors) {
		super();
		this.fname = fname;
		this.price = price;
		this.actors = actors;
	}
	// 默认的无参数构造器
	public Film() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	

	
}
